package com.hk.domain.jo;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.annotation.JSONType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.validation.annotation.Validated;

import java.io.Serializable;

@Getter
@Setter
@Validated
@ApiModel(description = "【param】附件图片实体类")
@JSONType(typeName = ExternalMessageAttachmentImageJO.TYPE_NAME)
public class ExternalMessageAttachmentImageJO extends ExternalMessageAttachmentBaseJO {


    protected static final String TYPE_NAME = "image";
    @JSONField(ordinal = 1)
    private String msgType = TYPE_NAME;

    /** 附件图片 */
    @ApiModelProperty(value = "附件图片")
    @JSONField(ordinal = 3)
    private ExternalMessageImageJO image;

    /*public ExternalMessageAttachmentImageJO() {
        super.setMsgType(ExternalMessageMsgTypeEnum.IMAGE.getCode());
    }*/
}
